# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-enum34
_pkgname=enum34
pkgver=1.1.10
pkgrel=1
pkgdesc='Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4.'
url='https://pypi.org/project/enum34/#files'
arch=('any')
license=('BSD')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('47fa967388c8d41ad2bc9f6a3923da0fb36b254b585bc472849862a3c5fea7202f12534d3d5ed4d08b0b7b5ba8bd9ca94d5fe93a35031e76ada89386802fb9bd')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

